package com.huawei.crm.util;

/**
 * @author luohua
 * @date 2021年12月10日15:44:50
 * @desc
 */
public class GeneralException extends RuntimeException {

    private static final long serialVersionUID = 1L;
    private final String message;
    private Integer code;

    public GeneralException(String message) {
        super(message);
        this.message = message;
    }

    public GeneralException(String message, Integer code) {
        this.message = message;
        this.code = code;
    }


    @Override
    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }
}
